<template>
  <router-view></router-view>
</template>
<script>
import role from './store/role';
export default {
  methods: {

  },
  mounted() {
    const rolePinia = role()
    const usertoken = window.localStorage.getItem('usertoken')
    if (usertoken) {
      rolePinia.update(usertoken)
    }else{
      this.$router.push('/login')
    }
  }
}

</script>
<style>
body {
  min-height: 100vh;
  background: linear-gradient(#d1e2ea 0, #dfeaee 100%);
  background-blend-mode: screen, difference;
}
</style>
